/**
 * 用户登录注册页面样式
 */
#sign-body {
  &:before {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: -1;
    background: #F1F4F5;
  }

  .copy-block {
    color: #76838F;
    line-height: 35px;
    margin-top: 40px;
    a {
      color: #76838F;
    }
    a:hover {
      color: #6b6b6b;
    }
  }
}

.sign-page {
  text-align: center;
  height: 100%;
  &::before {
    content: '';
    display: inline-block;
    min-height: 100%;
    vertical-align: middle;
    z-index: -1;
  }
  .sign-content {
    display: inline-block;
    vertical-align: middle;
    width: 460px;
    padding: 30px;
    &.content-wide {
      width: 940px;
    }
  }
}

.sign-block {
  background: #fff;
  border-radius: 3px;
  padding: 30px;
  .block-header {
    margin-top: 20px;
    margin-bottom: 40px;
    
    font-size: 18px;

    img {
      height: 32px;
    }
  }
  .block-content {
    img {
      height: 320px;
    }
  }
  .input-group {
    display: inline-block;
    width: 100%;
    height: 80px;
    text-align: left;
    .input-title {
      display: block;
      position: relative;
      line-height: 24px;
      bottom: -24px;
      transition: bottom 300ms, color 300ms;
    }
    input {
      position: relative;
      z-index: 1;
      display: block;
      height: 35px;
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid $brand-default;
      transition: border 300ms;
      &:focus {
        outline: none;
      }
    }
    &.expand {
      input {
        border-bottom: 1px solid $brand-primary;
      }
      .input-title {
        color: $brand-primary;
        bottom: -6px;
      }
    }
  }
  .btn {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .text-bar {
    @include clearfix;
    line-height: 40px;
    h3 {
      color: $gray;
      font-size: 20px;
    }
    .icheck-title {
      margin-left: 6px;
    }
    .email-animation {
      display: inline-block;
      float: left;
      width: 120px;
      text-align: left;
      overflow: hidden;
      img {
        height: 30px;
        animation: xchange 2s infinite;
      }
    }
  }

  .validate-bar {
    text-align: left;
    .validate-input {
      width: 220px;
      .validate-status {
        display: block;
        position: absolute;
        right: 2px;
        top: 33px;
        height: 20px;
        width: 20px;
        text-align: center;
        font-size: 12px;
        color: #ffffff;
        line-height: 20px;
        border-radius: 20px;
        background: #FFFFFF;

        &.success {
          background: #b5de70;
          .ion-close {
            display: none;
          }
        }
        &.error {
          background: #f17975;
          .ion-checkmark {
            display: none;
          }
        }
      }
    }
    .validate-content {
      width: 100px;
      display: inline-block;
    }
  }

  .sign-error {
    font-size: 12px;
    color: $brand-danger;
  }

  .messagebar {
    width: 280px;
    margin: 0 auto;
    line-height: 30px;
    color: #fff;

    &.messagebar-success {
      background: $brand-success;
    }

    &.messagebar-error {
      background: $brand-danger;
    }
  }
}

.agreement-block {
  margin-top: 35px;
  color: #37474f;
  .block-header {
    margin-bottom: 30px;
  }
  .sign-agreement {
    background: #fff;
    border-radius: 3px;
    padding: 50px;
    text-align: left;
    list-style: none;

    line-height: 22px;
  }
  .agreement-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 45px;
  }
  .agreement-item {
    h4 {
      margin-bottom: 18px;
      font-size: 14px;
      color: #64a9ea;
    }
    p {
      margin-bottom: 18px;
    }
  }
  .agreement-footer {
    margin-top: 40px;
  }
}

@keyframes xchange {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(120px);
  }
}
